package com.llp.declaresystem.mapper;

import com.llp.declaresystem.domain.entity.Expert;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author NASK
* @description 针对表【expert(专家信息表)】的数据库操作Mapper
* @createDate 2022-11-23 16:22:17
* @Entity com.llp.declaresystem.entity.Expert
*/
@Mapper
public interface ExpertMapper extends BaseMapper<Expert> {
    /**
     * 修改专家用户信息
     * @param expert
     * @return
     */
    int updateInfo(Expert expert);
    /**
     * 通过专家expertId删除专家用户
     */
    int deleteByExpertId(Integer id);

    /**
     * 通过uid查询用户信息
     * @param uid
     * @return
     */
    @Select("select * from expert where uid=#{uid}")
    Expert selectByUid(Integer uid);

}




